A teacher has a bag of sweets. If each student is given 3 sweets, the remaining number of sweets is 30. If each student is given 4 sweets, the remaining number of sweets is 4 sweets.
(a) How many students are there?
(b) How many sweets does the teacher have?